<?php

namespace Home\Controller;

use Think\Controller;
use Think\Verify;

class CaptchaController extends Controller {

    public $captcha = null;
    public $config = array();

    public function __construct() {
        parent::__construct();
        $this->config=array(
            'seKey'=>'f0aca7db2697049a0567265f238ecd47',
            'fontSize'=>30,
            'useCurve'=>FALSE
        );
        $this->captcha=new Verify($this->config);
    }

    public function index() {
        $this->captcha->entry();
    }

    public function check_verify($code){        
        return $this->captcha->check($code);
    }
}
